package com.jackchong.base;

import android.content.Intent;
import android.os.Bundle;

import androidx.annotation.ColorInt;
import androidx.annotation.ColorRes;
import androidx.annotation.LayoutRes;
import androidx.annotation.Nullable;
import android.view.View;
import android.widget.EditText;

/**
 * 作者: jack(黄冲)
 * 邮箱: 907755845@qq.com
 * create on 2018/12/14 9:46
 */

public interface ActivityHelper {

    void setWindowFILL(boolean fill);

    View inflateView(@LayoutRes int layout);

    View inflateView(@LayoutRes int layout, boolean auto);

    void openSerivce(Class cls);

    void openActivity(Class cls);

    void openActivity(Class cls, boolean finish);

    void openActivity(Intent intent);

    void openActivity(Intent intent, boolean finish);

    void openActivity(Intent intent, @Nullable Bundle options, boolean finish);

    void openActivityForResult(Class cls, int requestCode);

    void openActivityForResult(Intent intent, int requestCode);

    void finishActivity();

    void finishActivity(long delay);

    @ColorInt
    int getColorResources(@ColorRes int id);

    void hideInputKeyVisibility();

    void hideInputKeyVisibility(long delay);

    void showInputKeyVisibility(EditText anchor);

    boolean getInputKeyVisibility();

    boolean isScreenOrientation();

    void setScreenOrientation(boolean isPortrait);

    void onReceiveEvent(EventMgsBean event);

    void onSendEvent(EventMgsBean event);
}
